package com.Jiang.dao.User;
import com.Jiang.pojo.User;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Vector;

public interface UserDao {
    public User getLoginUser(Connection connection,String userCode) throws SQLException;

    public int ModifyPassword(Connection connection,Integer id,String userPassword) throws SQLException;

    public int getUserCount(Connection connection,String userName,int userRole) throws SQLException;

    public Vector<User> getUserList(Connection connection,String userName,int userRole,int currentPageNo,int pageSize) throws SQLException;

    public int addUser(Connection connection,User user) throws SQLException;

    public User getUserById(Connection connection,int Id) throws SQLException;

    public int modifyUser(Connection connection, User user,int modifyBy) throws SQLException;

    public int deluser(Connection connection,int Id) throws SQLException;
}
